package org.itcast.annotationandresttemplate.swaggerTest.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author SuQianLong
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Schema(description = "swagger实体类")
public class SwaggerDTO implements Serializable {
    @Schema(description = "实体类主键id")
    private Integer swaggerId;
    @Schema(description = "实体类名称")
    private String swaggerName;
    @Schema(description = "实体类描述")
    private String swaggerDesc;
    @Schema(description = "实体类状态")
    private SwaggerStatus swaggerStatus;
    @Schema(description = "实体类创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createAt;

    private int pageNum;
    private int pageSize;
}
